package com.foreknow.demo12;

public class TestSingleton {
    public static void main(String[] args) {
//        Singleton singleton = new Singleton();

       Singleton singleton= Singleton.getInstance();
       singleton.setName("fender");
        System.out.println(singleton.getName());
       Singleton singleton1= Singleton.getInstance();
       singleton1.setName("gibson");
        System.out.println(singleton1.getName());
    }
}
